<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>收货地址管理</title>
	<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
	<jsp:include page="../com/header.jsp"></jsp:include>
	<script type="text/javascript" src="../../js/comm/listcomm.js"></script>
	<script type="text/javascript">
		var contentUrl = root + "cms/address/findAddressNEStatusPage";
		var editUrl = 'addressEdit.jsp?id=';
		var operateUrl = root + 'cms/address/operateAddressByIds';
		function getfilter(){
			var _jsonFilter = "{";
			if($("#search_consigneeName").val() && $("#search_consigneeName").val().length > 0){
				_jsonFilter += "'search_LIKE_consigneeName':'"+$("#search_consigneeName").val().replace("'","\"")+"',";
			}
			if($("#search_mobile").val() && $("#search_mobile").val().length > 0){
				_jsonFilter += "'search_LIKE_mobile':'"+$("#search_mobile").val().replace("'","\"")+"',";
			}
			if($("#search_Province").val() && $("#search_Province").val().length > 0){
				_jsonFilter += "'search_LIKE_province':'"+$("#search_Province").val().replace("'","\"")+"',";
			}
			if($("#search_city").val() && $("#search_city").val().length > 0){
				_jsonFilter += "'search_LIKE_city':'"+$("#search_city").val().replace("'","\"")+"',";
			}
			if($("#search_area").val() && $("#search_area").val().length > 0){
				_jsonFilter += "'search_LIKE_area':'"+$("#search_area").val().replace("'","\"")+"',";
			}
			if($("#search_detailAddress").val() && $("#search_detailAddress").val().length > 0){
				_jsonFilter += "'search_LIKE_detailAddress':'"+$("#search_detailAddress").val().replace("'","\"")+"',";
			}
			if($("#search_userId").val() && $("#search_userId").val().length > 0){
				_jsonFilter += "'search_LIKE_userName':'"+$("#search_userId").val().replace("'","\"")+"',";
			}
			if($("#search_isDefault").val() && $("#search_isDefault").val().length > 0){
				_jsonFilter += "'search_EQ_isDefault':'"+$("#search_isDefault").val().replace("'","\"")+"',";
			}
			if($("#search_postcode").val() && $("#search_postcode").val().length > 0){
				_jsonFilter += "'search_LIKE_postcode':'"+$("#search_postcode").val().replace("'","\"")+"',";
			}
			if(_jsonFilter != "{"){
				_jsonFilter = _jsonFilter.substring(0,_jsonFilter.length - 1);
			}
			_jsonFilter += "}";
			return _jsonFilter;
		}
	</script>
</head>
<body>
<section>
	<div>
		<div class="col-xs-12">
			<div class="box">
				<form id="search_form" class="form-horizontal">
					<div class="tabSelect" id="selectHeadId">
						<br>
						<div class="form-group  col-md-3 search-form">
							<label class="col-md-4 control-label controls" for="formGroupInputSmall">收货人：</label>
							<div class="col-md-8">
								<input type="text" placeholder="收货人" class="form-control input-sm" id="search_consigneeName" name="consigneeName"/>
							</div>
						</div>
						<div class="form-group  col-md-3 search-form">
							<label class="col-md-4 control-label controls" for="formGroupInputSmall">手机号：</label>
							<div class="col-md-8">
								<input type="text" placeholder="手机号" class="form-control input-sm" id="search_mobile" name="mobile"/>
							</div>
						</div>
						<div class="form-group  col-md-3 search-form">
							<label class="col-md-4 control-label controls" for="formGroupInputSmall">省份：</label>
							<div class="col-md-8">
								<input type="text" placeholder="省份" class="form-control input-sm" id="search_Province" name="province"/>
							</div>
						</div>
						<div class="form-group  col-md-3 search-form">
							<label class="col-md-4 control-label controls" for="formGroupInputSmall">用户名：</label>
							<div class="col-md-8">
								<input type="text" placeholder="用户名" class="form-control input-sm" id="search_userId" name="userName"/>
							</div>
						</div>
						<div class="form-group  col-md-3 search-form">
							<label class="col-md-4 control-label controls" for="formGroupInputSmall">邮政编码：</label>
							<div class="col-md-8">
								<input type="text" placeholder="邮政编码" class="form-control input-sm" id="search_postcode" name="postcode"/>
							</div>
						</div>
						<input type="button" value="查询" id="search" class="btn btn-primary searchBtn">
					</div>
				</form>
				<div class="box-body table-responsive" style="clear:both;">
					<input type="button" value="删除" id="deleteSome" class="btn btn-danger">
				</div>
				<div class="box-body table-responsive">
					<table id="example2" class="table table-bordered table-hover">
						<thead>
						<tr>
							<th width="30"><input type="checkbox" id="_selectAll" /></th>
							<th width="80">收货人</th>
							<th width="80">手机号</th>
							<th width="80">省份</th>
							<th width="80">城市</th>
							<th width="80">区域</th>
							<th width="80">详细地址</th>
							<th width="80">用户名</th>
							<th width="80">是否默认</th>
							<th width="80">邮政编码</th>
						</tr>
						</thead>
						<!-- 表格内容 start -->
						<tbody id="mycontent"></tbody>
						<!-- 表格内容 end -->
					</table>
					<!-- 分页标签 start -->
					<div class="row page_big_div" id="displayPage"></div>
					<!-- 分页标签 end -->
					<script id="tableContentTmple" type="text/x-jsrender">
								<tr>
									<td><input id="ck_{{:id}}" ckId="{{:id}}" ckStatus="{{:status}}" class="ckSelect" type="checkbox" /></td>
									<td>{{:consigneeName}}</td>
									<td>{{:mobile}}</td>
									<td style="vertical-align:middle; text-align:left;">{{:province}}</td>
									<td style="vertical-align:middle; text-align:left;">{{:city}}</td>
									<td style="vertical-align:middle; text-align:left;">{{:area}}</td>
									<td style="vertical-align:middle; text-align:left;">{{:detailAddress}}</td>
									<td style="vertical-align:middle; text-align:left;">{{:userName}}</td>
									<td>{{if isDefault==1}}是{{else}}否{{else status==3}}{{/if}}</td>
									<td>{{:postcode}}</td>
								</tr>
						  </script>
				</div>
			</div>
		</div>
</section>
</body>
</html>